﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyMaLoaiGhe.aspx.cs" Inherits="LotteCinema.QuanLyMaLoaiGhe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style27
        {
            margin-left: 80px;
        }
        .style29
        {
            margin-left: 61px;
        }
        .style32
        {
            text-align: center;
            margin-left: 80px;
        }
        .style33
        {
            width: 81px;
            text-align: right;
        }
        .style34
        {
            margin-left: 510px;
        }
        .style35
        {
            margin-left: 445px;
        }
        .style36
        {
            margin-left: 63px;
        }
        .style37
        {
            width: 81px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title"  style="font-size:14pt;">QUẢN LÝ MÃ LOẠI GHẾ</div>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style32">
                <asp:Label ID="lblThongBao" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style27">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style33">
                
            </td>
            <td align="center">
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:Label ID="Label2" runat="server" Text="Mã Loại Ghế:"></asp:Label>
                <asp:DropDownList ID="DDLMaLG" runat="server" AutoPostBack="True" 
                    CssClass="style29" Height="22px" 
                    onselectedindexchanged="DDLMaLG_SelectedIndexChanged" Width="163px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style37" >
                
            </td>
            <td align="center">
                <asp:Label ID="Label3" runat="server" Text="Tên Loại Ghế:"></asp:Label>
                <asp:TextBox ID="txtTenLoaiGhe" runat="server" CssClass="style36"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style26" align="center">
                <asp:Button ID="btTimKiem" runat="server" onclick="btTimKiem_Click" 
                    Text="Tim Kiem" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:GridView ID="grLoaiGhe" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CssClass="style34" 
                    DataKeyNames="MALG" 
                    onselectedindexchanged="grLoaiGhe_SelectedIndexChanged" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="MALG" HeaderText="MALG" ReadOnly="True" 
                            SortExpression="MALG" />
                        <asp:BoundField DataField="TENLG" HeaderText="TENLG" HtmlEncode="False" 
                            SortExpression="TENLG" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [LOAIGHE]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:ImageButton ID="imThem" runat="server" CssClass="style35" Height="52px" 
                    ImageUrl="~/Images/THEM.png" onclick="imThem_Click" Width="110px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" onclick="ImageButton2_Click" Width="110px" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" onclick="imSua_Click" Width="110px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
